﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace WindowsFormsApplication1
{
    public partial class PatientTable : Form
    {
        public PatientTable()
        {
            InitializeComponent();
        }


        private void AddBut_Click(object sender, EventArgs e)
        {
            PatientForm pf = new PatientForm();
            if (pf.ShowDialog() == DialogResult.OK)
            {
                dataGridView1.Rows.Add();
            }
            else if (pf.ShowDialog() == DialogResult.Cancel)
            {
                // ничего не делать
            }
            
        }

        private void EditBut_Click(object sender, EventArgs e)
        {
            PatientForm pf = new PatientForm();
            if (pf.ShowDialog() == DialogResult.OK)
            {
            }
            else if (pf.ShowDialog() == DialogResult.Cancel)
            {
                // ничего не делать
            }
        }

        private void DeleteBut_Click(object sender, EventArgs e)
        {
         
        }

        private void DiagnoseBut_Click(object sender, EventArgs e)
        {

        }

        private void dataGridView2_CellContentClick(object sender, DataGridViewCellEventArgs e)
        {

        }


    }
    class Patient
    {
        public string Name { get; set; }

        public string SurName { get; set; }

        public DateTime DoB { get; set; }

        public string Diagnose { get; set; }
    }
}
